package com.htc.android.footprints.utils;

import android.content.Context;
import android.view.WindowManager;

public class ResolutionUtil
{
  private static final int HVGA = 2;
  private static final int QVGA = 1;
  private static final int UNKNOW = 0;
  private static final int VGA = 4;
  private static final int WVGA = 8;

  private static int getResolution(Context paramContext)
  {
    WindowManager localWindowManager = (WindowManager)paramContext.getSystemService("window");
    int i = localWindowManager.getDefaultDisplay().getWidth();
    int j = localWindowManager.getDefaultDisplay().getHeight();
    int k;
    if (((i == 240) && (j == 320)) || ((i == 320) && (j == 240)))
      k = 1;
    while (true)
    {
      return k;
      if (((i == 480) && (j == 320)) || ((i == 320) && (j == 480)))
      {
        k = 2;
        continue;
      }
      if (((i == 480) && (j == 640)) || ((i == 640) && (j == 480)))
      {
        k = 4;
        continue;
      }
      if (((i == 480) && (j == 800)) || ((i == 800) && (j == 480)))
      {
        k = 8;
        continue;
      }
      k = 0;
    }
  }

  public static boolean isHVGA(Context paramContext)
  {
    if ((0x2 & getResolution(paramContext)) != 0);
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isQVGA(Context paramContext)
  {
    if ((0x1 & getResolution(paramContext)) != 0);
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isVGA(Context paramContext)
  {
    if ((0x4 & getResolution(paramContext)) != 0);
    for (int i = 1; ; i = 0)
      return i;
  }

  public static boolean isWVGA(Context paramContext)
  {
    if ((0x8 & getResolution(paramContext)) != 0);
    for (int i = 1; ; i = 0)
      return i;
  }
}

/* Location:           E:\workspace\dex2java\dex-translator-0.0.9.3\HtcFootprints_dex2jar.jar
 * Qualified Name:     com.htc.android.footprints.utils.ResolutionUtil
 * JD-Core Version:    0.6.0
 */